/*
    引入路由配置
 */
// 导入"课程"模块的路由
import course from "./teamsRouter/course"
// 导入"通讯录"、"笔记"模块的路由
import directoryNote from "./teamsRouter/directory-note"
// 导入"登陆"、"注册"模块的路由
import loginRegister from "./teamsRouter/login-register"
// 导入"我的"模块的路由
import me from "./teamsRouter/me"

// 配置路由信息R
export default [
   {
      path: '/',
      redirect: '/home'
   },
   {
      path: '/',
      component: () => import('@/views/Layout/index.vue'),
      children: [
         {
            path: '/home',
            component: () => import('@/views/Home/index.vue')
         },
         {
            path: '/directory',
            component: () => import('@/views/Directory/index.vue')
         },
         {
            path: '/note',
            component: () => import('@/views/Note/index.vue')
         },
         {
            path: '/me',
            component: () => import('@/views/Me/index.vue')
         }
      ]
    },
   ...course,
   ...directoryNote,
   ...loginRegister,
   ...me
]